﻿#region Imports
using System;
using System.Diagnostics;
using CommonUtilities.Logging;
using CommonUtilities.Util;
using DirectoryAnalyzer.Views;
#endregion

namespace DirectoryAnalyzer.Main
{
    static class Program
    {
        #region Properties
        /// <summary>
        /// Specifies if application sounds should be played
        /// </summary>
        public static bool IsMute { get; set; }

        /// <summary>
        /// Holds log settings
        /// </summary>
        public static Logger Logger { get; private set; }

        public static bool IsDebug { get { return Debugger.IsAttached; } }
        #endregion

        #region Application entry-point
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Logger = new Logger(true, true, true);
            AppInstance.ValidateAppInstances<frmStartUp>(null, null, Debugger.IsAttached);
        }
        #endregion
    }
}
